using SqlSugar;
using System;
using System.Drawing;

namespace SqlSugar.Template.Models
{
    [SugarTable("BookEntry")]
    public class BookEntry
    {    /// <summary>
         /// 主键 
         ///</summary>
        [SugarColumn(ColumnName = "Id", IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        [SugarColumn(ColumnName = "UserId")]
        public int UserId { get; set; }
        /// <summary>
        /// 总资产
        /// </summary>
        [SugarColumn(ColumnName = "Total")]
        public decimal Total { get; set; }
        /// <summary>
        /// 仓位
        /// </summary>
        [SugarColumn(ColumnName = "Position")]
        public short Position { get; set; }
        /// <summary>
        /// 盈亏
        /// </summary>
        [SugarColumn(ColumnName = "ProfitAndLoss")]
        public decimal ProfitAndLoss { get; set; }
        /// <summary>
        /// 盈亏比
        /// </summary>
        [SugarColumn(ColumnName = "ProfitAndLossRatio")]
        public short ProfitAndLossRatio { get; set; }
     
        /// <summary>
        /// 热门题材
        /// </summary>
        [SugarColumn(ColumnName = "PopularThemes")]
        public string PopularThemes { get; set; }
        /// <summary>
        /// 今日复盘
        /// </summary>
        [SugarColumn(ColumnName = "TodayReview")]
        public string TodayReview { get; set; }
        /// <summary>
        /// 明日计划
        /// </summary>

        [SugarColumn(ColumnName = "TomorrowPlan")]
        public string TomorrowPlan { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnName = "Notes")]
        public string Notes { get; set; }
        /// <summary>
        /// 分享地址
        /// </summary>
        [SugarColumn(ColumnName = "Uri")]
        public string Uri { get; set; }
      
        [SugarColumn(ColumnName = "CreationTime")]
        public DateTime CreationTime { get; set; } = DateTime.Now;
        [SugarColumn(ColumnName = "ModifyTime")]
        public DateTime ModifyTime { get; set; }
        /// <summary>
        /// 股票编码
        ///</summary>
        [SugarColumn(ColumnName = "StockId")]
        public long StockId { get; set; }
    }
}
